Image processing method and imaging device

ABSTRACT

An image processing method for processing a first image captured by a camera is provided, in which the first image is retrieved; and an output image is output to an image output circuit after the first image is modified to the output image, wherein a result value of each pixel of the output image is zero or a value generated by subtracting the threshold value from the brightness value of each pixel of the first image.

CROSS REFERENCE TO RELATED APPLICATIONS

This application claims priority of Taiwan Patent Application No.105116223, filed on May 25, 2016, the entirety of which is incorporatedby reference herein.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention relates to a technique of cameras, and inparticular to a technique of sensors.

Description of the Related Art

For digital imaging and the sensing technology used in capturing digitalimages, sensing devices are all equipped with sensing abilities for awide range of wavelengths, so it is necessary to place correspondingfilters for different types of light with different wavelength ranges,so that the correct image is obtained by the sensing device. Forexample, in a visible-light camera or a visible-light device, aband-pass filter corresponding to visible light or an IR cut filtercorresponding to visible light is installed prior to the sensing device.The unwanted light is filtered after the light passes through an opticallens group (a band-pass filter or a low-pass filter) and the lightirradiates to the sensing device so that a visible image is obtained inresponse to the sensing device. In an infrared-light camera or aninfrared-light device, an IR band-pass filter corresponding to infraredlight is installed prior to the sensing device. The other lights (exceptfor the infrared light in the light wavelength) are all filtered so thatthe infrared image is obtained in response to the sensing device. Inorder to reduce the cost of the camera and the sensing device, there isa mixed camera integrated with a visible-light camera and aninfrared-light camera. In order to obtain a visible image and aninfrared image from the same sensing device, the filter must be a dualband-pass filter so that the visible light and the infrared light canpass through the filter at the same time. Thus, both of the visibleimage and the infrared image are obtained via the elements of thecamera. However, the sensing device could response to both visible lightand infrared light, the pixels originally used for sensing infraredlight sensing visible light, also. As a result, the infrared image canbe influenced by and mixed with the image of visible light. The infraredimage or picture would come up with extra image which is not supposed tobe shown in the infrared image.

BRIEF SUMMARY OF THE INVENTION

The object of the present invention is to decrease the interference ofvisible light in the infrared image so that accuracy of the infraredimage provided to users may be rised.

The present invention provides an image processing method for processinga first image captured by a camera, the method comprising: retrievingthe first image; and outputting an output image to an image outputcircuit after the first image is modified to the output image, wherein aresult value of each pixel of the output image is zero or a valuegenerated by subtracting a threshold value from a brightness value ofeach pixel of the first image.

The present invention also provides an image processing method forprocessing a plurality of pixels obtained by a camera, wherein theplurality of pixels are combined into a first image. The methodcomprises retrieving the brightness values of the pixels of the firstimage; comparing the brightness values of the pixels with a thresholdvalue; when the brightness value of the first pixel is less than thethreshold value, outputting zero to serve as a result value of a pixelof an output image, wherein the pixel of the output image corresponds tothe first pixel; and outputting the output image to an image outputinterface.

The present invention provides an imaging device, comprising: a camera,arranged to capture a first image; and an image processor, coupled tothe camera, retrieving the first image, and outputting an output imageto an image output circuit after the first image is modified to theoutput image, wherein a result value of each pixel of the output imageis zero or a value generated by subtracting the threshold value from thebrightness value of each pixel of the first image.

The present invention provides an imaging device, comprising: a camera,arranged to capture a plurality of pixels, wherein the plurality ofpixels are combined into a first image; and an image processor, coupledto the camera, wherein the image processor is arranged to: retrievebrightness values of the pixels of the first image; compare thebrightness values of the pixels with a threshold value; output zero toserve as a result value of a pixel of an output image when thebrightness value of the first pixel among the plurality of pixels isless than the threshold value, wherein the pixel of the output imagecorresponds to the first pixel; and output the output image to an imageoutput interface.

The present invention can be more fully understood by reading thesubsequent detailed description and examples with references made to theaccompanying drawings, wherein:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of an imaging device according to anembodiment of the present invention;

FIG. 2 is a schematic diagram of a mixer Bayer filter according to anembodiment of the present invention;

FIG. 3 is a mapping table between the average brightness value of asecond image and the threshold value according to an embodiment of thepresent invention;

FIG. 4 is a flowchart of an operating method of an imaging deviceaccording to an embodiment of the present invention;

DETAILED DESCRIPTION OF THE INVENTION

The present invention will be discussed in detail in the examples of avariety of methods described. However, it should be noted that manyviable concepts provided by the present invention may be implemented ina variety of specific ranges. These specific examples are merelyillustrative of the manufacturing and the usage method of the presentinvention, but they are not intended to limit the scope of the presentinvention.

FIG. 1 is a schematic diagram of an imaging device according to anembodiment of the present invention. As shown in FIG. 1, the imagingdevice 100 may be implemented in a variety of computer systemconfigurations (for example: a smartphone, a tablet computer, a personaldigital assistant, a notebook, and the like). The imaging device 100includes a lens 102, a filter set 104, a sensing device 106, an imageprocessor 110, a memory device 112 and an image output circuit 114. Thelens 102 usually comprises a set of lens composed of one or more piecesof optical glass (for example: concave lenses, convex lenses, and thecombination thereof). The lens 102 is configured to allow light to focuson the sensing device 106 after receiving the light and to allow thelight to pass through the filter set 104 before the light irradiates tothe sensing device 106. The filter set 104 is composed of differentfilters (for example: a band-pass filter, a dual band-pass filter, alow-pass filter, and the like). In one embodiment of the presentinvention, the filter set 104 is composed of the dual band-pass filterand the mixed Bayer filter. The dual band-pass filter allows light witha specific frequency band to pass through. In one embodiment of thepresent invention, the dual band-pass filter only allows infrared lightand visible to light pass through. The detailed structure of the mixedBayer filter is described in FIG. 2. The sensing device 106 can be acomplementary metal-oxide-semiconductor (CMOS) sensing device or acharge-coupled device (CCD). In one embodiment of the present invention,the sensing device 106 includes at least one first region correspondingto the filter set 104 (the mixed Bayer filter) and at least one secondregion corresponding to the filter set 104 (the mixed Bayer filter).

FIG. 2 is a schematic diagram of a mixer Bayer filter according to anembodiment of the present invention. The mixer Bayer filter is composedof a plurality of RGB-IR arrays arranged in a repeating pattern. In oneembodiment of the present invention, one mixer Bayer filter is composedof four RGB-IR arrays, but it is not intended to limit the scope of thepresent invention. The RGB-IR array is composed of an RGB array and anIR array. For example, each filter device of the RGB-IR array isrepresented by a letter, wherein letter “R” represents a red lightfilter device, letter “G” represents a green light filter device, letter“B” represents a blue light filter device, and letter “IR” represents aninfrared light filter device. Each filter device can allow light withthe corresponding wavelength or corresponding color to pass through. TheRGB-IR array is composed of the red light filter device, the green lightfilter device, the blue light filter device, and the infrared lightfilter device. In one embodiment of the present invention, the mixedBayer filter includes at least one first region and at least one secondregion, and the first region and the second region respectively allowlight of different specific wavelengths to pass through, so that thelight of different specific wavelengths can be transmitted to thesensing device 106. In one embodiment of the present invention, thefirst region is configured to allow infrared light (830 nm-870 nm) topass through, and the second region is configured to allow visible light(400 nm-680 nm) to pass through. In one embodiment of the presentinvention, the first image is generated by the light passing through atleast one first region of the band-pass filter and the mixed Bayerfilter. In one embodiment of the present invention, the second image isgenerated by the light passing through at least one second region of theband-pass filter and the mixed Bayer filter. In one embodiment of thepresent invention, the first image is an infrared image, and the secondimage is a visible image.

Back to the FIG. 1, the image processor 110 may comprise a singlecentral processing unit (CPU) or a plurality of parallel processingunits related to a parallel processing environment. In one embodiment ofthe present invention, the image processor 110 modifies a plurality ofbrightness values of the first image to a plurality of result values ofan output image according to a threshold value, and transmits theplurality of result values of the output image to the image outputcircuit 114. The details will be described later. The memory device 112comprises a read-only memory (ROM), a flash ROM and/or a random accessmemory (RAM). Generally, the program modules often contain routines,programs, objects, components, and the like to perform the functions ofdynamic information transmission or reception. In one embodiment of thepresent invention, the memory device 112 is configured to store athreshold value, wherein the threshold value varies with differentenvironments or is a fixed value. In another embodiment of the presentinvention, a mapping table can be stored in the memory device 112. Themapping table is configured to store the relationship between theaverage brightness value of the second image and the threshold value,and the details will be described in FIG. 3. The image output circuit114 is configured to receive the plurality of result values of theoutput image so that the other devices (not shown in FIG. 1) of theimaging device 100 can perform a series of backend processes. Forexample, the backend processes can comprise color correction, gammacorrection, and/or edge enhancement.

In one embodiment of the present invention, the image processor 110retrieves the brightness value of each pixel of the first image, andoutputs the output image to the image output circuit 114 after the firstimage is modified to the output image, wherein the output image has aplurality of result values corresponding to the brightness value of eachpixel of the first image, and result values of the pixels of the outputimage are generated by subtracting the threshold value from thebrightness values of the corresponding pixels of the first image.However, zero replaces any one of the result values when any one of theresults values of is less than zero. For example, the brightness valueof one pixel of the first image is 27 Nit, and the threshold value is 18Nit, so the result value corresponding to the brightness value of thepixel of the first image is 9 Nit. While the brightness value of onepixel of the first image is 17 Nit, and the threshold value is 18 Nit,the result value corresponding to the brightness value of the pixel ofthe first image is 0 Nit, not −1 Nit, and so on. Finally, the pluralityof result values of the output image is received by the image outputcircuit 114 so that the other devices (not shown in FIG. 1) of theimaging device 100 can perform a series of backend processes, whereinthe decision of the threshold value will be described later.

In another embodiment of the present invention, the image processor 110sets all result values of the output image to zero when the brightnessvalue of each pixel of the first image is all less than the thresholdvalue. For example, the brightness value of one pixel of the first imageis 5 Nit, and the threshold value is 18 Nit, so the result valuecorresponding to the brightness value of the pixel of the first image is0 Nit, not −13 Nit. The brightness value of another pixel of the firstimage is 3 Nit, and the threshold value is 18 Nit, while the resultvalue corresponding to the brightness value of the another pixel of thefirst image is 0 Nit, not −15 Nit, and so on. Finally, the plurality ofresult values of the output image is received by the image outputcircuit 114 so that the other devices (not shown in FIG. 1) of theimaging device 100 can perform a series of backend processes.

In one embodiment of the present invention, the threshold value isdetermined according to the type of the material of the filter set 104because the filter set 104 is composed of various materials. Namely, thethreshold value is determined as the fixed value when the imaging device100 is out of the factory. Although the filter set 104 is made of thesame materials, its spectral characteristics may differ slightly due tothe different composition ratios of the materials. In one embodiment ofthe present invention, the threshold value is between 10% and 20% of thebrightness value of the brightest pixel of the first image. For example,the threshold value is a fixed value between 1 Nit and 2 Nit if thebrightness value of the brightest pixel of the first image is 10 Nit. Inanother embodiment of the present invention, the threshold value is avalue between 1% and 10% of a theoretical maximum brightness value ofany pixel of the first image. For example, the theoretical maximumbrightness value of any pixel of the first image is 100 Nit, so thethreshold value is a value between 1 Nit and 10 Nit. In anotherembodiment of the present invention, the threshold value is 1.66% of thetheoretical maximum brightness value of any pixel of the first image,wherein the theoretical maximum brightness value is the value that thebrightness value from full dark to full light after the pixel isirradiated by the light. For example, the theoretical maximum brightnessvalue of any pixel of the first image is 100 Nit, and the thresholdvalue is 1.66 Nit.

In another embodiment of the present invention, the threshold value isdetermined according to the environment of the imaging device 100.Namely, there are different threshold values in different environmentsin the imaging device 100. For example, the lens 102 captures a secondimage when the first image is captured, a subject is recorded by thefirst image and the second image through light with differentwavelengths, and a value of threshold value varies with brightnessvalues of different pixels of the second image. In another embodiment ofthe present invention, the value of threshold value varies with anaverage brightness value of the different pixels of the second image. Amapping table between an average brightness value of a second image andthe threshold value is shown in FIG. 3.

FIG. 3 is a mapping table between the average brightness value of asecond image and the threshold value according to an embodiment of thepresent invention. As shown in FIG. 3, the threshold value correspondingto the average brightness value of the second image is 12 Nit when theaverage brightness value of the second image is between 0 Nit and 0.05Nit. The threshold value corresponding to the average brightness valueof the second image is 14 Nit when the average brightness value of thesecond image is between 0.05 Nit and 0.10 Nit. The threshold valuecorresponding to the average brightness value of the second image is 16Nit when the average brightness value of the second image is between0.10 Nit and 0.15 Nit. The threshold value corresponding to the averagebrightness value of the second image is 18 Nit when the averagebrightness value of the second image is between 0.15 Nit and 0.20 Nit.The threshold value corresponding to the average brightness value of thesecond image is 20 Nit when the average brightness value of the secondimage is between 0.20 Nit and 0.25 Nit. The subsequent correspondingrelationship can be inferred, but it is not limited to the presentinvention. In another embodiment of the present invention, the averagebrightness value of the second image is calculated and obtained througha mathematical formula. For example, when the average brightness valueof the second image is 0.05 Nit, the image processor 110 multiplies 0.05Nit by a specific coefficient “a” to obtain a result value 0.05a Nit andthe result value 0.05a is served as the threshold value corresponding tothe average brightness value of the second image. When the averagebrightness value of the second image is 0.25 Nit, the image processor110 multiplies 0.25 Nit by the specific coefficient “a” to obtain aresult value 0.25a Nit and the result value 0.25a is served as thethreshold value corresponding to the average brightness value of thesecond image. The subsequent corresponding relationship can be inferredso on, but it is not limited to the present invention.

The brightness value is in unit of Nit. However, the output valueobtained by the sensing device can also be represented in digital formdirectly, but only for digital photography. As a result, the brightnessvalue of the pixel can be performed in digital form, such as 10 bits or8 bits, and it does not influence the implementation of the specificembodiment.

FIG. 4 is a flowchart of an operating method of an imaging deviceaccording to an embodiment of the present invention. First, in step S10,the lens 102 transmits light to the filter set 104 after receiving thelight, and then the flowchart goes to step S20. In step S20, the lightis irradiated on the sensing device 106 after passing through the dualband-pass filter and the mixed Bayer filter, the dual band-pass filterhas a first band and a second band which light passes through with, awavelength of the first band is an infrared light wavelength, awavelength of the second band is a visible-light wavelength, the mixedBayer filter is equipped with spectroscopic devices arranged in arepeating pattern, the spectroscopic device comprises a first region anda second region, the first region is configured to transmit the infraredlight, the second region is configured to transmit the visible light,and then the flowchart goes to step S30. In step S30, the sensing device106 transmits the first image to the image processor 110, and theflowchart goes to S40. In step S40, the image processor 110 retrievesthe first image and outputs an output image to an image output circuit114 after the first image is modified to the output image, wherein aresult value of each pixel of the output image is zero or a valuegenerated by subtracting the threshold value from the brightness valueof each pixel of the first image. Finally, the flowchart goes to stepS50. In step S50, the image output circuit 114 receives the plurality ofresult values of the output image so that the other devices (not shownin FIG. 1) of the imaging device 100 perform a series of backendprocesses.

The method of the present invention, or certain aspects or portionsthereof, may exist in the form of program code. The program code can bestored in physical media, such as floppy discs, hard disk, or any othermachine-readable (computer-readable) storage media, or one that is notlimited to the external form of a computer program product. When theprogram code is executed (for example: loaded by a computer), thismachine is becoming involved in the device of the present invention. Theprogram code can also be transmitted through some transmission media,such as a wire or cable, fiber optics, or any transmission patterns usedfor transmission. When the program code is received, loaded and executedby a machine (such as a computer), the machine becomes an apparatus forpracticing the invention. When a general-purpose processor isimplemented, the program code combines with the processor to provide aunique apparatus that operates similar to application-specific logiccircuits.

The previous description of the disclosure is provided to enable anyperson skilled in the art to make or use the disclosure. Variousmodifications to the disclosure will be readily apparent to thoseskilled in the art, and the generic principles defined herein can beapplied to other variations without departing from the scope of thedisclosure. Thus, the disclosure is not intended to be limited to theexamples and designs described herein, but are to be accorded the widestscope consistent with the principles and novel features disclosedherein.

What is claimed is:
 1. An image processing method for processing a firstimage captured by a camera, the method comprising: retrieving the firstimage; and outputting an output image to an image output circuit afterthe first image is modified to the output image, wherein a result valueof each pixel of the output image is zero or a value generated bysubtracting a threshold value from a brightness value of each pixel ofthe first image.
 2. The image processing method as claimed in claim 1,wherein the threshold value is between 10% and 20% of a brightness valueof a brightest pixel of the first image.
 3. The image processing methodas claimed in claim 1, wherein the threshold value is between 1% and 10%of a theoretical maximum brightness value of any pixel of the firstimage.
 4. The image processing method as claimed in claim 1, wherein thethreshold value is 1.66% of a theoretical maximum brightness value ofany pixel of the first image.
 5. The image processing method as claimedin claim 1, wherein the camera captures a second image when capturingthe first image, a subject is recorded by the first image and the secondimage through light with different wavelengths, and the threshold valuevaries with brightness values of different pixels of the second image.6. The image processing method as claimed in claim 5, wherein thethreshold value varies with an average brightness value of the differentpixels of the second image.
 7. The image processing method as claimed inclaim 5, wherein the first image is an infrared image, and the secondimage is a visible image.
 8. An image processing method for processing aplurality of pixels obtained by a camera, wherein the plurality ofpixels are combined into a first image, the method comprising:retrieving brightness values of the plurality of pixels of the firstimage; comparing the brightness values of the plurality of pixels with athreshold value; when the brightness value of a first pixel of theplurality of pixels is less than the threshold value, outputting zero toserve as a result value of a pixel of an output image, wherein the pixelof the output image corresponds to the first pixel; and outputting theoutput image to an image output interface.
 9. An imaging device,comprising: a camera, arranged to capture a first image; and an imageprocessor, coupled to the camera, retrieving the first image, andoutputting an output image to an image output circuit after the firstimage is modified to the output image, wherein a result value of eachpixel of the output image is zero or a value generated by subtracting athreshold value from a brightness value of each pixel of the firstimage.
 10. An imaging device, comprising: a camera, arranged to capturea plurality of pixels, wherein the plurality of pixels are combined intoa first image; and an image processor, coupled to the camera, whereinthe image processor is arranged to: retrieve brightness values of theplurality of pixels of the first image; compare the brightness values ofthe plurality of pixels with a threshold value; output zero to serve asa result value of a pixel of an output image when the brightness valueof a first pixel of the plurality of pixels is less than the thresholdvalue, wherein the pixel of the output image corresponds to the firstpixel; and output the output image to an image output interface.
 11. Theimaging device as claimed in claim 10, wherein the threshold value isbetween 10% and 20% of a brightness value of a brightest pixel of thefirst image.
 12. The imaging device as claimed in claim 10, wherein thethreshold value is between 1% and 10% of a theoretical maximumbrightness value of any pixel of the first image.
 13. The imaging deviceas claimed in claim 10, wherein the threshold value is 1.66% of atheoretical maximum brightness value of any pixel of the first image.14. The imaging device as claimed in claim 10, wherein the cameracaptures a second image when capturing the first image, a subject isrecorded by the first image and the second image through light withdifferent wavelengths, and the threshold value varies with brightnessvalues of different pixels of the second image.
 15. The imaging deviceas claimed in claim 14, wherein the value of threshold value varies withan average brightness value of the different pixels of the second image.16. The imaging device as claimed in claim 14, wherein the first imageis an infrared image, and the second image is a visible image.
 17. Theimaging device as claimed in claim 10, wherein the imaging devicecomprises a dual band-pass filter, a mixed Bayer filter and a sensingdevice, the dual band pass filter, the mixed Bayer filter and thesensing device are arranged in a line so that light is irradiated on thesensing device after passing through the dual band pass filter and themixed Bayer filter, the dual band-pass filter has a first band and asecond band that allow light to pass, a wavelength of the first band isan infrared light wavelength, a wavelength of the second band is avisible-light wavelength, the mixed Bayer filter is equipped withspectroscopic devices arranged in a repeating pattern, the spectroscopicdevice comprises a first region and a second region, the first region isconfigured to transmit the infrared light, the second region isconfigured to transmit the visible light, and the first image isgenerated after light passes through the dual band-pass filter and thefirst region.